<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Notifications\Notifiable;
use Watson\Validating\ValidatingTrait;


class CourseTime extends Model
{
    use  Notifiable;
    use ValidatingTrait;
    protected $table = 'course_times';
    //
    protected $fillable = [
        'c_id', 'lessons','school_year','date','weeks','days','teacher','place','class_group_id'
    ];
    protected $rules = [
//        'c_name' => 'required|max:20|unique:courses',
    ];


    protected $validationMessages = [
//        'c_name.required' => '课程名称必填',
//        'c_name.max' => '课程名称长度不得超过20个字符',
//        'c_name.unique' => '该课程已经被注册过了'
    ];
}
